<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	template="/WEB-INF/templates/default.xhtml">

	<f:metadata>
		<f:viewParam name="bulletinId" value="#{bulletinHome3.id}"></f:viewParam>
		<f:viewParam name="moduleName" value="报价管理"></f:viewParam>
		<f:viewParam name="cnname" value="#{offerPriceHistoryList.parameterValues['cnname']}" />
	</f:metadata>
	<ui:define name="head">
		<style type="text/css">
	.removeButton {
		float: right;
		margin-right: 20px;
	}
	
	.limitUnit {
		margin-top: 5px;
	}
	
	h2 {
		text-align: center
	}
	
	.rowStyle {
		text-align: center;
		font-size: 16px
	}
</style>
	</ui:define>
	<ui:define name="content">
		<h:form>

			<div style="height:40px;margin-left:10px">

				<p:outputLabel value="中介名称："></p:outputLabel>
				<p:inputText value="#{offerPriceHistoryList.parameterValues['cnname']}"></p:inputText>

				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"   action="offerPriceHistory.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="offerPriceHistory.xhtml?bulletinId=#{param.bulletinId}"></p:button>
				</div>
				<div class="clearbt"></div>
			</div>
		</h:form>
		<p:panel header="报价历史记录">

			<p:dataTable value="#{offerPriceHistoryList.resultList}" var="_op">
				
				<p:column headerText="中介机构">
					<h:outputText value="#{_op.trade.supplier.cnname}" />					
				</p:column>
				
				<p:column headerText="报价金额" style="text-align: right;">
					<h:outputText value="#{_op.newMaxOffer}">
						<f:convertNumber maxFractionDigits="2" groupingUsed="true" />
					</h:outputText>
				</p:column>
				
				<p:column headerText="报价时间">
					<h:outputText value="#{_op.createDate}">
						<f:convertDateTime pattern="HH:mm:ss"/>
					</h:outputText>
				</p:column>
				
			</p:dataTable>
			
		</p:panel>
		
	</ui:define>
</ui:composition>
